<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>模板字符串练习</title>
    </head>
    <body>
        <h1>模板字符串练习</h1>
        <p>来源:<a href="https://github.com/dvajs/dva-knowledgemap">https://github.com/dvajs/dva-knowledgemap</a></p>
        <script>
            const str = 'world';
            // 单行
            console.log(`hello ${str}`);
            // 多行
            let slogan = `
            Hellow ${str},
            I Love You
            `;
            console.log(slogan)
        </script>
    </body>
</html>